#ifndef STATICLINKLIST_H_
#define STATICLINKLIST_H_
#define MAXSIZE  1000
#include "../adt.h"
typedef struct
{
    ElemType data;
    int curr;
} Comonent, StaticLinkList[MAXSIZE];

/*space[0].cur is head node, "0" is null pointer*/
Status InitList(StaticLinkList space);

/*return 0, or index of element*/
int Malloc_StaticLinkList(StaticLinkList space);

/*insert element before index */
Status StaticLinkListInsert(StaticLinkList L, int i, ElemType e);

/*Delete the index element*/
Status StaticLinklistDelete(StaticLinkList L, int i);

/*collect index k node to static linklist*/
void Free_StaticLinklist(StaticLinkList space, int k);

/*return Count of elements*/
int StaticLinkListLength(StaticLinkList L);
#endif